{extends file = "../../layouts/shopdt.tpl"}
{block name="content-main"}
    <div class="row">
    {foreach $products as $product}
            <div class="item-dtu">
                <div class="content-item">
                    {html_entity_decode({HTML::linkRoute('products/{id}',
                        {HTML::image(URL::to('/public/')|cat:'/'|cat:$product->product_image_thumbnail, $product->product_name, ['height' => '118', 'width' => '165'])}
                        , ['id' =>  $product->id, 'product_name' => $product->product_name])}
                    )}
                    <div class="caption">
                        <h5>{$product->product_model}</h5>
                        <p>{$product->product_name}</p>
                        <span>{$product->product_price}</span>
                        <div class="link-cart-detail">
                            <a href="#" class="btn" role="button">Add cart</a>
                            {HTML::linkRoute('products/{id}', 'Detail', ['id' =>  $product->id, 'product_name' => $product->product_name], ['class' => 'btn'])}
                        </div>
                    </div>
                </div>
            </div>
    {/foreach}
    </div>
{/block}
{block name="content-main"}
    <div class="line-both"></div>
    <div class="content-footer">
        {$products->links()}
    </div>
{/block}